package com.hy.webview

import com.hy.hybase.BaseApplication
import com.hy.hybase.loadsir.*
import com.kingja.loadsir.core.LoadSir

/**
 * @Description:
 * @Author: wdk
 * @CreateTime: 2024/4/14 17:44
 */
class MyApplication :BaseApplication(){

    override fun onCreate() {
        super.onCreate()
        LoadSir.beginBuilder()
            .addCallback(ErrorCallback())
            .addCallback(EmptyCallback())
            .addCallback(LoadingCallback())
            .addCallback(TimeoutCallback())
            .addCallback(CustomCallback())
            .setDefaultCallback(LoadingCallback::class.java)
            .commit()
    }
}